<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: contracts/eoslib/math.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_3fea0bf1ce879ce73e6ecec98007efcd.html">eoslib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">math.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="system_8h_source.html">eoslib/system.h</a>&gt;</code><br />
</div>
<p><a href="math_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga61d571f58c24fb4663cc3729f3d5613e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#ga61d571f58c24fb4663cc3729f3d5613e">multeq_i128</a> (<a class="el" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> *self, const <a class="el" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> *other)</td></tr>
<tr class="memdesc:ga61d571f58c24fb4663cc3729f3d5613e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply two 128 unsigned bit integers. Throws exception if pointers are invalid.  <a href="group__mathcapi.html#ga61d571f58c24fb4663cc3729f3d5613e">More...</a><br /></td></tr>
<tr class="separator:ga61d571f58c24fb4663cc3729f3d5613e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad70a23703654281749410aef05c85c74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#gad70a23703654281749410aef05c85c74">diveq_i128</a> (<a class="el" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> *self, const <a class="el" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> *other)</td></tr>
<tr class="memdesc:gad70a23703654281749410aef05c85c74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide two 128 unsigned bit integers and throws an exception in case of invalid pointers.  <a href="group__mathcapi.html#gad70a23703654281749410aef05c85c74">More...</a><br /></td></tr>
<tr class="separator:gad70a23703654281749410aef05c85c74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7372b74e4cb87455342d39bdf3724811"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#ga7372b74e4cb87455342d39bdf3724811">double_add</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> b)</td></tr>
<tr class="memdesc:ga7372b74e4cb87455342d39bdf3724811"><td class="mdescLeft">&#160;</td><td class="mdescRight">Addition between two double.  <a href="group__mathcapi.html#ga7372b74e4cb87455342d39bdf3724811">More...</a><br /></td></tr>
<tr class="separator:ga7372b74e4cb87455342d39bdf3724811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6390d36d23bd89bcd9bcf52385ba88f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#ga6390d36d23bd89bcd9bcf52385ba88f2">double_mult</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> b)</td></tr>
<tr class="memdesc:ga6390d36d23bd89bcd9bcf52385ba88f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplication between two double.  <a href="group__mathcapi.html#ga6390d36d23bd89bcd9bcf52385ba88f2">More...</a><br /></td></tr>
<tr class="separator:ga6390d36d23bd89bcd9bcf52385ba88f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad67af06a6b0e9dbbf3be05d6bf99257c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#gad67af06a6b0e9dbbf3be05d6bf99257c">double_div</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> b)</td></tr>
<tr class="memdesc:gad67af06a6b0e9dbbf3be05d6bf99257c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Division between two double.  <a href="group__mathcapi.html#gad67af06a6b0e9dbbf3be05d6bf99257c">More...</a><br /></td></tr>
<tr class="separator:gad67af06a6b0e9dbbf3be05d6bf99257c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68d359e670da751723bf3d78ff759614"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#ga68d359e670da751723bf3d78ff759614">double_lt</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> b)</td></tr>
<tr class="memdesc:ga68d359e670da751723bf3d78ff759614"><td class="mdescLeft">&#160;</td><td class="mdescRight">Less than comparison between two double.  <a href="group__mathcapi.html#ga68d359e670da751723bf3d78ff759614">More...</a><br /></td></tr>
<tr class="separator:ga68d359e670da751723bf3d78ff759614"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8911bd5a24e0d8287d6b3d5a81500e6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#ga8911bd5a24e0d8287d6b3d5a81500e6a">double_eq</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> b)</td></tr>
<tr class="memdesc:ga8911bd5a24e0d8287d6b3d5a81500e6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equality check between two double.  <a href="group__mathcapi.html#ga8911bd5a24e0d8287d6b3d5a81500e6a">More...</a><br /></td></tr>
<tr class="separator:ga8911bd5a24e0d8287d6b3d5a81500e6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab60e3f0c6651ad497f6665e032e39f6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#gab60e3f0c6651ad497f6665e032e39f6a">double_gt</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> b)</td></tr>
<tr class="memdesc:gab60e3f0c6651ad497f6665e032e39f6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Greater than comparison between two double.  <a href="group__mathcapi.html#gab60e3f0c6651ad497f6665e032e39f6a">More...</a><br /></td></tr>
<tr class="separator:gab60e3f0c6651ad497f6665e032e39f6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1388e46084036133e57508c18590b1ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#ga1388e46084036133e57508c18590b1ed">double_to_i64</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a)</td></tr>
<tr class="memdesc:ga1388e46084036133e57508c18590b1ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert double to 64 bit unsigned integer.  <a href="group__mathcapi.html#ga1388e46084036133e57508c18590b1ed">More...</a><br /></td></tr>
<tr class="separator:ga1388e46084036133e57508c18590b1ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaec506d4ee77526e67ab5f2a8ef54f2b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mathcapi.html#gaec506d4ee77526e67ab5f2a8ef54f2b5">i64_to_double</a> (<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> a)</td></tr>
<tr class="memdesc:gaec506d4ee77526e67ab5f2a8ef54f2b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert 64 bit unsigned integer to double (interpreted as 64 bit unsigned integer)  <a href="group__mathcapi.html#gaec506d4ee77526e67ab5f2a8ef54f2b5">More...</a><br /></td></tr>
<tr class="separator:gaec506d4ee77526e67ab5f2a8ef54f2b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section copyright"><dt>Copyright</dt><dd>defined in eos/LICENSE.txt </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
